package com.initial.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.Alias;

/**
 * 
 * @TableName tb_crm_customer
 */
@TableName(value ="tb_crm_customer")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Alias("customer")
public class TbCrmCustomer implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer ownerUserId;

    private Integer creatorUserId;

    private String name;

    //system user的字段  --- 创建人 拥有者
    private String owner;
    private String createUser;

    private String origin;

    private String address;

    private String zipCode;

    private String industry;

    private String annualRevenue;

    private String ownership;

    private String rating;

    private String createTime;

    private String updateTime;

    @TableLogic
    private Integer deleteStatus;

    private Integer isLocked;

    private Integer deleteUserId;

    private Long deleteTime;

    //contacts的字段
   /* private String csname;
    private String post;
    private String department;
    private Integer sex;
    private String saltname;
    private String telephone;
    private String email;
    private String qqNo;
    private String csaddress;
    private String cszipCode;
    private String description;*/

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}